import { PdfNodeFunc } from '../../components';
import * as NodeTypes from './all';

export const getPdfNodeType = (type: any) => {
  return NodeTypes[type] as PdfNodeFunc;
};
export const getAllPdfNodeType = () => {
  return NodeTypes;
};
export const getListPdfNodeType = () => {
  const types: PdfNodeFunc[] = [];
  for (const key in NodeTypes) {
    types.push(NodeTypes[key]);
  }
  return types;
};
